package com.example.login.com.czf.biz;

import com.example.login.com.czf.dao.UserMapper;
import com.example.login.com.czf.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Flamenco
 */
@Service
public class UserBizImpl {
    @Autowired
    private UserMapper userMapper;

    public User login(User user) {
        return this.userMapper.login(user);
    }

    public int update(String newpassword, String userCode) {
        return this.userMapper.update(newpassword, userCode);
    }
}
